package com.kellyfeng.spittr.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.kellyfeng.spittr.domain.Spittle;

public interface SpittleRepository extends JpaRepository<Spittle, Long>{

	@Query("select s from Spittle s order by id desc")
	List<Spittle> findSpittleOrderByIdDesc();

}
